package com.lyc.attend.dao;

import com.lyc.attend.entity.Attend;
import com.lyc.common.page.PageQueryConditions;

import java.util.List;

public interface AttendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attend record);

    int insertSelective(Attend record);

    Attend selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Attend record);

    int updateByPrimaryKey(Attend record);

    Attend selectTodayAttendanceRecord(Long userId);

    int selectPageTotalRowsByConditions(PageQueryConditions queryConditions);

    List<Attend> selectByPageConditions(PageQueryConditions queryConditions);

    List<Attend> selectEveningAbsenceRecord();

    List<Long> selectWholeAbsenceRecord();

    void insertAbsenceRecord(List<Attend> unattendedList);
}